import instance from './reques'

// 登录
export const logins=(url:any,data: any)=>{
  return instance.post(url,data)
}
// 列表
export const lists=(url: string,data: any)=>{
  // 使用instance.get方法发送一个GET请求，url为传入的url，params为传入的data
  return instance.get(url,{params:data})
}
// 删除
export const del=(url: string,id: { id: string })=>{
  return instance.delete(url,{params:id})
}
// 编辑
export const po=(url: string,id: any)=>{
  return instance.post(url,id)
}
// 新增
export const put=(url: string,data: any)=>{
  return instance.put(url,data)
}
// 注册
export const reg=(url: string,data: any)=>{
  return instance.post(url,data)
}